import Router from 'vue-router'

import acc from './main/Acc.vue'
import user from './main/UserInfo.vue'
import reg from './main/Reg.vue'
import login from './main/Login.vue'

var router = new Router({
    routes:[
        {
            path: "/acc",
            component: acc,
            children:[
                {path: 'login', component: login},
                {path: 'reg', component: reg},

            ]
        },
        {path: "/user", component: user},
    ]
})

// 把路由暴露出去
export default router